package com.example.testlib.agencymode

import java.lang.reflect.Proxy

class HouseAgentSmartKT {
    var mHouseOwner : IRentHouseKT? = null

    constructor(houseOwner : IRentHouseKT) {
        mHouseOwner = houseOwner
        mHouseOwner = Proxy.newProxyInstance(
                houseOwner.javaClass.classLoader,
                arrayOf(IRentHouseKT::class.java),
                AgentHandlerKT(mHouseOwner)
        ) as IRentHouseKT
    }
}